package com.csdj.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.csdj.server.pojo.Admin;
import com.csdj.server.pojo.RespBean;
import com.csdj.server.pojo.Role;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xyx
 * @since 2022-12-12
 */
public interface IAdminService extends IService<Admin> {

    public RespBean login(String username, String password,String code, HttpServletRequest request);

    Admin getAdminInfoByUserName(String username);

    List<Role> getRoles(Integer adminId);

    /**
     * 根据操作员姓名模糊查询
     * @param keywords
     * @return
     */
    public List<Admin> getAllAdmins(String keywords);

    public RespBean updateAdminRole(Integer adminId, Integer[] rids);
}
